lcBlockAddImagePlace Home

Adds a "drawn-by-client" Raster Image object to a block. LiteCAD will control visible position and size of the image and generate LC_EVENT_DRAWIMAGE event when the image must be redrawn. The client application is responsible to draw the image at the event.

 HANDLE lcBlockAddImagePlace (
   HANDLE hBlock,
   int Id,
   double X,
   double Y,
   double Width,
   double Height,
   BOOL bBorder
 );

Parameters
hBlock
  Handle to a block.
Id
  Identifier of an image. Use this number in a DrawImage event to identify what image must be drawn.
X Y
  Coordinates of image insertion. Left bottom corner of the image will be placed at this coordinate.
Width Height
  Image size, in drawing's units.
bBorder
  If TRUE, then the image will have a border lines.

Return Value

  Handle to created image reference object or NULL if the function fails.

See Also

  Code sample,   lcBlockAddImageRef